package com.example.sachon.vo;

import com.example.sachon.Const;
import com.example.sachon.DownloadImageTask;
import com.example.sachon.R;

import android.widget.ImageView;

public class BoardItem {
	private String chon_id;
	private String board_id;
	private String view_lv;
	private String idx;
	private String phone_number;
	private String user_name;
	public String getUser_name() {
		return user_name;
	}

	public void setUser_name(String user_name) {
		this.user_name = user_name;
	}

	private String title;
	private String content;
	private String main_yn;
	private String main_idx;
	private String cnt;
	private String wr_dt;
	private String from_dt;
	private String end_dt;
	private String pic_name;

	public String getChon_id() {
		return chon_id;
	}

	public void setChon_id(String chon_id) {
		this.chon_id = chon_id;
	}

	public String getBoard_id() {
		return board_id;
	}

	public void setBoard_id(String board_id) {
		this.board_id = board_id;
	}

	public String getView_lv() {
		return view_lv;
	}

	public void setView_lv(String view_lv) {
		this.view_lv = view_lv;
	}

	public String getIdx() {
		return idx;
	}

	public void setIdx(String idx) {
		this.idx = idx;
	}

	public String getPhone_number() {
		return phone_number;
	}

	public void setPhone_number(String phone_number) {
		this.phone_number = phone_number;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getMain_yn() {
		return main_yn;
	}

	public void setMain_yn(String main_yn) {
		this.main_yn = main_yn;
	}

	public String getMain_idx() {
		return main_idx;
	}

	public void setMain_idx(String main_idx) {
		this.main_idx = main_idx;
	}

	public String getCnt() {
		return cnt;
	}

	public void setCnt(String cnt) {
		this.cnt = cnt;
	}

	public String getWr_dt() {
		return wr_dt;
	}

	public void setWr_dt(String wr_dt) {
		this.wr_dt = wr_dt;
	}

	public String getFrom_dt() {
		return from_dt;
	}

	public void setFrom_dt(String from_dt) {
		this.from_dt = from_dt;
	}

	public String getEnd_dt() {
		return end_dt;
	}

	public void setEnd_dt(String end_dt) {
		this.end_dt = end_dt;
	}

	public String getPic_name() {
		return pic_name;
	}

	public void setPic_name(String pic_name) {
		this.pic_name = pic_name;
	}

	public BoardItem() {
		// TODO Auto-generated constructor stub
	}
	private ImageView _imageView;
	
//	public ImageView imageView(ImageView image)
//	{
//		if( _imageView == null){
//			_imageView = new ImageView();
//			_imageView.setAdjustViewBounds(true);
//			_imageView.setScaleType(ImageView.ScaleType.CENTER_CROP);
//	        DownloadImageTask task = new DownloadImageTask(_imageView);
//           // task.execute(Const.SERVER_IMAGE_URL+data.get(position).getPic_name()); 
//	        task.execute(Const.SERVER_IMAGE_URL+this.getPic_name());
//		}
//		return _imageView;
//	}
}
